package com.enzoism.springboot.designpattern.a03strategy;

public class Hero {
    private String name;
    private AttackInterface attack;

    public Hero(String name, AttackInterface attack) {
        this.name = name;
        this.attack = attack;
    }

    public void action(){
        attack.attack();
    }
}
